\hypertarget{antenna__ctrl_8c}{
\section{front\_\-panel/antenna\_\-ctrl.c File Reference}
\label{antenna__ctrl_8c}\index{front\_\-panel/antenna\_\-ctrl.c@{front\_\-panel/antenna\_\-ctrl.c}}
}
Antenna control functions.  


{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$avr/io.h$>$}\par
{\tt \#include $<$avr/interrupt.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include \char`\"{}antenna\_\-ctrl.h\char`\"{}}\par
{\tt \#include \char`\"{}main.h\char`\"{}}\par
{\tt \#include \char`\"{}eeprom.h\char`\"{}}\par
{\tt \#include \char`\"{}led\_\-control.h\char`\"{}}\par
{\tt \#include \char`\"{}band\_\-ctrl.h\char`\"{}}\par
{\tt \#include \char`\"{}event\_\-handler.h\char`\"{}}\par
{\tt \#include \char`\"{}../global.h\char`\"{}}\par
{\tt \#include \char`\"{}../wmv\_\-bus/bus.h\char`\"{}}\par
{\tt \#include \char`\"{}../wmv\_\-bus/bus\_\-rx\_\-queue.h\char`\"{}}\par
{\tt \#include \char`\"{}../wmv\_\-bus/bus\_\-tx\_\-queue.h\char`\"{}}\par
{\tt \#include \char`\"{}../wmv\_\-bus/bus\_\-commands.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hypertarget{antenna__ctrl_8c_4c789c42cd9c5ef1386df76917e238c6}{
unsigned char \textbf{antenna\_\-ctrl\_\-get\_\-comb\_\-value} (unsigned char antenna\_\-comb)}
\label{antenna__ctrl_8c_4c789c42cd9c5ef1386df76917e238c6}

\item 
unsigned char \hyperlink{antenna__ctrl_8c_867d4ec14c504e0ecaa9c44c1da6bce6}{antenna\_\-ctrl\_\-comb\_\-allowed} (unsigned char antenna\_\-comb)
\begin{CompactList}\small\item\em Retrieve if a certain antenna combination is allowed. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_617a964884601fef0e8559094ade5e3a}{antenna\_\-ctrl\_\-deactivate\_\-outputs} (unsigned char $\ast$addresses, unsigned char length, unsigned char cmd)
\begin{CompactList}\small\item\em This function will go through a parameter with addresses and send a command to it. \item\end{CompactList}\item 
unsigned char \hyperlink{antenna__ctrl_8c_09bb6d82a9407551bf0fb39d14b47b0e}{antenna\_\-ctrl\_\-antenna\_\-selected} (void)
\begin{CompactList}\small\item\em This function returns the selected antenna combination. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_d5779ad7c632a3ab8c3e1e0a805fcb14}{
void \hyperlink{antenna__ctrl_8c_d5779ad7c632a3ab8c3e1e0a805fcb14}{antenna\_\-ctrl\_\-send\_\-ant\_\-data\_\-to\_\-bus} (void)}
\label{antenna__ctrl_8c_d5779ad7c632a3ab8c3e1e0a805fcb14}

\begin{CompactList}\small\item\em Send the output string for the current antenna to the bus. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_e051f6dcbf9dbf11f3af8651c9c6e466}{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus} (unsigned char antenna\_\-index)
\begin{CompactList}\small\item\em Send the output string for the rx antenna to the bus. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_d10d2760a5ef3cd190cb010a1d92d3bc}{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-band\_\-data\_\-to\_\-bus} (char index)
\begin{CompactList}\small\item\em Send the output string for the rx antenna to the bus. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_4478b59565326f8dc61b9fbdf737a61b}{
void \textbf{antenna\_\-ctrl\_\-rotate} (unsigned char ant\_\-index, unsigned int heading)}
\label{antenna__ctrl_8c_4478b59565326f8dc61b9fbdf737a61b}

\item 
void \hyperlink{antenna__ctrl_8c_514bb0448df38458bf204ae9f52eacd1}{antenna\_\-ctrl\_\-change\_\-rx\_\-ant} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Function used to change an rx antenna. \item\end{CompactList}\item 
unsigned char \hyperlink{antenna__ctrl_8c_9dd71f363aeb28a1206f121ce7fc7ef5}{antenna\_\-ctrl\_\-get\_\-rotatable} (void)
\begin{CompactList}\small\item\em Get which antennas can be rotated. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_d67893d0c54f78d5dd2df22a2b46b8fb}{
void \hyperlink{antenna__ctrl_8c_d67893d0c54f78d5dd2df22a2b46b8fb}{antenna\_\-ctrl\_\-deactivate\_\-all} (void)}
\label{antenna__ctrl_8c_d67893d0c54f78d5dd2df22a2b46b8fb}

\begin{CompactList}\small\item\em Function which will deactivate all activated antenna ctrl outputs, using type BUS\_\-CMD\_\-DRIVER\_\-DEACTIVATE\_\-ALL\_\-ANT\_\-OUTPUTS. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_c8a569961df8c43aa12bfaebd4b639c3}{
void \hyperlink{antenna__ctrl_8c_c8a569961df8c43aa12bfaebd4b639c3}{antenna\_\-ctrl\_\-deactivate\_\-all\_\-rx\_\-band} (void)}
\label{antenna__ctrl_8c_c8a569961df8c43aa12bfaebd4b639c3}

\begin{CompactList}\small\item\em Function which will deactivate all activated rx antenna ctrl band outputs, using type BUS\_\-CMD\_\-DRIVER\_\-DEACTIVATE\_\-ALL\_\-RX\_\-BAND\_\-OUTPUTS. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_67ef7b9651847f28b45acf63409d3e4f}{antenna\_\-ctrl\_\-set\_\-antenna\_\-text} (char $\ast$str, unsigned char index)
\begin{CompactList}\small\item\em Set the antenna text. \item\end{CompactList}\item 
char $\ast$ \hyperlink{antenna__ctrl_8c_f699385bbfef71f6e7b5bc907620f375}{antenna\_\-ctrl\_\-get\_\-antenna\_\-text} (unsigned char index)
\item 
unsigned char \hyperlink{antenna__ctrl_8c_dd8252987b8ca6f3349ec7a610e4f42c}{antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length} (unsigned char index)
\begin{CompactList}\small\item\em Get the antenna text length. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_3770c53b8f0d9f218f7be391526258f8}{antenna\_\-ctrl\_\-set\_\-output\_\-comb} (unsigned char $\ast$data, unsigned char index, unsigned char length)
\begin{CompactList}\small\item\em Set the output combination string. \item\end{CompactList}\item 
unsigned char $\ast$ \hyperlink{antenna__ctrl_8c_1d46521ce8c3d872f23f43b850da9b62}{antenna\_\-ctrl\_\-get\_\-output\_\-comb} (unsigned char index)
\begin{CompactList}\small\item\em Retrieve the output combination string. \item\end{CompactList}\item 
unsigned char \hyperlink{antenna__ctrl_8c_639af234c8e00a13dd10c7a0542a2121}{antenna\_\-ctrl\_\-get\_\-output\_\-comb\_\-length} (unsigned char index)
\begin{CompactList}\small\item\em Retrieve the length of the output combination string. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_57c363e5b03bbe970b825521621b5d93}{antenna\_\-ctrl\_\-set\_\-direction} (unsigned int dir, unsigned char index)
\begin{CompactList}\small\item\em Set the direction of a specific antenna. \item\end{CompactList}\item 
unsigned int \hyperlink{antenna__ctrl_8c_3fa7520f32b87f9239b1a62d93b60224}{antenna\_\-ctrl\_\-get\_\-direction} (unsigned char index)
\begin{CompactList}\small\item\em Get the direction of a specific antenna. \item\end{CompactList}\item 
unsigned char \hyperlink{antenna__ctrl_8c_af93a36f33eb514936184d6b59871045}{antenna\_\-ctrl\_\-get\_\-rotator\_\-addr} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Get the address of the rotator at a certain antenna index. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_1b846760b85ec561bcfa58ae8ef754f8}{antenna\_\-ctrl\_\-set\_\-flags} (unsigned char flags, unsigned char index)
\begin{CompactList}\small\item\em Set the antenna flags. \item\end{CompactList}\item 
unsigned char \hyperlink{antenna__ctrl_8c_414f17b17292193e149683ef16f9a2b4}{antenna\_\-ctrl\_\-get\_\-flags} (unsigned char index)
\begin{CompactList}\small\item\em Get the antenna flags. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_ca265706bc869a70b15125d0009985f8}{antenna\_\-ctrl\_\-set\_\-comb\_\-allowed} (unsigned int comb)
\begin{CompactList}\small\item\em Set the value of combination allowed. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_649f35330fef3657d6c940d4cce729c2}{antenna\_\-ctrl\_\-set\_\-rotator\_\-flags} (unsigned char ant\_\-index, unsigned char flags)
\begin{CompactList}\small\item\em Set the flags of the rotator, see \hyperlink{antenna__ctrl_8h}{antenna\_\-ctrl.h} for defines. \item\end{CompactList}\item 
unsigned char \hyperlink{antenna__ctrl_8c_adbedcec23510f8371b478ecb6a44cff}{antenna\_\-ctrl\_\-get\_\-rotator\_\-flags} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Get the flags of the rotator, see \hyperlink{antenna__ctrl_8h}{antenna\_\-ctrl.h} for defines. \item\end{CompactList}\item 
unsigned int \hyperlink{antenna__ctrl_8c_2889af83cf81535e56fb73482d5d6b93}{antenna\_\-ctrl\_\-get\_\-comb\_\-allowed} (void)
\begin{CompactList}\small\item\em Get the value of combination allowed. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_47b039bc9a835c8cbabd7f50057b2957}{antenna\_\-ctrl\_\-set\_\-antenna\_\-data} (\hyperlink{structstruct__antenna}{struct\_\-antenna} $\ast$data)
\begin{CompactList}\small\item\em Set the antenna data. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_39daba7cda25836874b10aa8e8cf48f3}{antenna\_\-ctrl\_\-set\_\-rx\_\-antenna\_\-data} (\hyperlink{structstruct__rx__antennas}{struct\_\-rx\_\-antennas} $\ast$data)
\begin{CompactList}\small\item\em Set the antenna rx data. \item\end{CompactList}\item 
unsigned char \hyperlink{antenna__ctrl_8c_d80ffba3c3b267e545c89fdf8eb630a0}{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-count} (void)
\begin{CompactList}\small\item\em Retrieve the number of rx antennas. \item\end{CompactList}\item 
char $\ast$ \hyperlink{antenna__ctrl_8c_70b169070eef11ade4befde87d77066e}{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-name} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Retrieve the rx antenna name. \item\end{CompactList}\item 
char $\ast$ \hyperlink{antenna__ctrl_8c_a056976754fe5135ea38a96e5aa1a1da}{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-output\_\-str} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Retrieve the rx antenna output str. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_3d68a22e57a045367d7e8041498edb61}{
void \hyperlink{antenna__ctrl_8c_3d68a22e57a045367d7e8041498edb61}{antenna\_\-ctrl\_\-select\_\-default\_\-ant} (void)}
\label{antenna__ctrl_8c_3d68a22e57a045367d7e8041498edb61}

\begin{CompactList}\small\item\em Function which will select the default antenna for this band if it is configured. \item\end{CompactList}\item 
void \hyperlink{antenna__ctrl_8c_75cf7e57b9079e88c7a80607923292c9}{antenna\_\-ctrl\_\-ant\_\-read\_\-eeprom} (unsigned char band\_\-index)
\begin{CompactList}\small\item\em Read the eeprom for the antenna settings. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_e1bce3e0bb4305ca4cdd709c2a9f823e}{
void \hyperlink{antenna__ctrl_8c_e1bce3e0bb4305ca4cdd709c2a9f823e}{antenna\_\-ctrl\_\-rx\_\-ant\_\-read\_\-eeprom} (void)}
\label{antenna__ctrl_8c_e1bce3e0bb4305ca4cdd709c2a9f823e}

\begin{CompactList}\small\item\em Read the eeprom for the rx antenna settings. \item\end{CompactList}\item 
unsigned int \hyperlink{antenna__ctrl_8c_39d3e60a2b5fbaa84e3d6e7f8af053f2}{antenna\_\-ctrl\_\-get\_\-start\_\-heading} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Function returns the start heading for a certain antenna. \item\end{CompactList}\item 
unsigned int \hyperlink{antenna__ctrl_8c_a8912eaa044153c33252d2950adc61e8}{antenna\_\-ctrl\_\-get\_\-max\_\-rotation} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Function returns the maximal number of degrees we can rotate an antenna. \item\end{CompactList}\item 
unsigned char \hyperlink{antenna__ctrl_8c_a00ccf2aa2b062bb0d95817067c656ff}{antenna\_\-ctrl\_\-get\_\-sub\_\-menu\_\-type} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Get which kind of sub meny type an antenna has got. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
\hypertarget{antenna__ctrl_8c_f03b3d69df71e0d0ec47e157bb67ec27}{
\hyperlink{structstruct__antenna}{struct\_\-antenna} \hyperlink{antenna__ctrl_8c_f03b3d69df71e0d0ec47e157bb67ec27}{current\_\-antennas}}
\label{antenna__ctrl_8c_f03b3d69df71e0d0ec47e157bb67ec27}

\begin{CompactList}\small\item\em Contains the current antenna information. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_86724924c6a16cefec90295c5ff765b9}{
\hyperlink{structstruct__rx__antennas}{struct\_\-rx\_\-antennas} \hyperlink{antenna__ctrl_8c_86724924c6a16cefec90295c5ff765b9}{rx\_\-antennas}}
\label{antenna__ctrl_8c_86724924c6a16cefec90295c5ff765b9}

\begin{CompactList}\small\item\em Contains the rx antenna information. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_fad4a528127d6ffd202af4be4da8a803}{
unsigned int \hyperlink{antenna__ctrl_8c_fad4a528127d6ffd202af4be4da8a803}{main\_\-flags}}
\label{antenna__ctrl_8c_fad4a528127d6ffd202af4be4da8a803}

\begin{CompactList}\small\item\em Different flags, description is found in main.h. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_9a8d307592031a670fe7934f9406c240}{
unsigned char \hyperlink{antenna__ctrl_8c_9a8d307592031a670fe7934f9406c240}{current\_\-activated\_\-ant\_\-outputs} \mbox{[}ANTENNA\_\-OUTPUT\_\-COMB\_\-SIZE\mbox{]}}
\label{antenna__ctrl_8c_9a8d307592031a670fe7934f9406c240}

\begin{CompactList}\small\item\em Array which we store the current devices which we have activated antenna outputs on. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_ff2ad82a24da236cad733a2229392651}{
unsigned char \hyperlink{antenna__ctrl_8c_ff2ad82a24da236cad733a2229392651}{current\_\-activated\_\-ant\_\-outputs\_\-length} = 0}
\label{antenna__ctrl_8c_ff2ad82a24da236cad733a2229392651}

\begin{CompactList}\small\item\em How many devices we have activated antenna outputs on. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_fedfa00d46d29fcda6b0cb4cb670e1ba}{
unsigned char \hyperlink{antenna__ctrl_8c_fedfa00d46d29fcda6b0cb4cb670e1ba}{current\_\-activated\_\-rx\_\-ant\_\-outputs} \mbox{[}RX\_\-ANTENNA\_\-OUTPUT\_\-STR\_\-LENGTH\mbox{]}}
\label{antenna__ctrl_8c_fedfa00d46d29fcda6b0cb4cb670e1ba}

\begin{CompactList}\small\item\em Array which we store the current devices which we have rx antenna activated outputs on. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_a5a5e46693b63aa4df899a3d6b1ea5cc}{
unsigned char \hyperlink{antenna__ctrl_8c_a5a5e46693b63aa4df899a3d6b1ea5cc}{current\_\-activated\_\-rx\_\-ant\_\-outputs\_\-length} = 0}
\label{antenna__ctrl_8c_a5a5e46693b63aa4df899a3d6b1ea5cc}

\begin{CompactList}\small\item\em How many devices we have activated rx antenna outputs on. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_97d2dca0d1c2c855e756605223302934}{
unsigned char \hyperlink{antenna__ctrl_8c_97d2dca0d1c2c855e756605223302934}{current\_\-band\_\-activated\_\-outputs\_\-rx} \mbox{[}RX\_\-ANTENNA\_\-BAND\_\-OUTPUT\_\-STR\_\-LENGTH\mbox{]}}
\label{antenna__ctrl_8c_97d2dca0d1c2c855e756605223302934}

\begin{CompactList}\small\item\em Array which we store the current devices which we have activated rx antenna band outputs on. \item\end{CompactList}\item 
\hypertarget{antenna__ctrl_8c_bb7ff990464129e78d3c64a1d74723d2}{
unsigned char \hyperlink{antenna__ctrl_8c_bb7ff990464129e78d3c64a1d74723d2}{current\_\-band\_\-activated\_\-outputs\_\-rx\_\-length} = 0}
\label{antenna__ctrl_8c_bb7ff990464129e78d3c64a1d74723d2}

\begin{CompactList}\small\item\em How many devices we have activated rx antenna band outputs on. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Antenna control functions. 

Antenna control functions \begin{Desc}
\item[Author:]Mikael Larsmark, SM2WMV \end{Desc}
\begin{Desc}
\item[Date:]2010-01-25 

\begin{Code}\begin{verbatim} #include "front_panel/antenna_ctrl.c" 
\end{verbatim}
\end{Code}

 \end{Desc}


Definition in file \hyperlink{antenna__ctrl_8c-source}{antenna\_\-ctrl.c}.

\subsection{Function Documentation}
\hypertarget{antenna__ctrl_8c_75cf7e57b9079e88c7a80607923292c9}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-ant\_\-read\_\-eeprom@{antenna\_\-ctrl\_\-ant\_\-read\_\-eeprom}}
\index{antenna\_\-ctrl\_\-ant\_\-read\_\-eeprom@{antenna\_\-ctrl\_\-ant\_\-read\_\-eeprom}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-ant\_\-read\_\-eeprom}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-ant\_\-read\_\-eeprom (unsigned char {\em band\_\-index})}}
\label{antenna__ctrl_8c_75cf7e57b9079e88c7a80607923292c9}


Read the eeprom for the antenna settings. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band\_\-index}]The band index \end{description}
\end{Desc}


Definition at line 493 of file antenna\_\-ctrl.c.

References eeprom\_\-get\_\-antenna\_\-data().

Referenced by band\_\-ctrl\_\-load\_\-band().\hypertarget{antenna__ctrl_8c_09bb6d82a9407551bf0fb39d14b47b0e}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-antenna\_\-selected@{antenna\_\-ctrl\_\-antenna\_\-selected}}
\index{antenna\_\-ctrl\_\-antenna\_\-selected@{antenna\_\-ctrl\_\-antenna\_\-selected}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-antenna\_\-selected}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-antenna\_\-selected (void)}}
\label{antenna__ctrl_8c_09bb6d82a9407551bf0fb39d14b47b0e}


This function returns the selected antenna combination. 

\begin{Desc}
\item[Returns:]The selected antenna combination, for example 1 means antenna 1, 3 means antenna 1 and 2 (binary representation) \end{Desc}


Definition at line 134 of file antenna\_\-ctrl.c.

References struct\_\-status::selected\_\-ant, and status.\hypertarget{antenna__ctrl_8c_514bb0448df38458bf204ae9f52eacd1}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-change\_\-rx\_\-ant@{antenna\_\-ctrl\_\-change\_\-rx\_\-ant}}
\index{antenna\_\-ctrl\_\-change\_\-rx\_\-ant@{antenna\_\-ctrl\_\-change\_\-rx\_\-ant}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-change\_\-rx\_\-ant}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-change\_\-rx\_\-ant (unsigned char {\em ant\_\-index})}}
\label{antenna__ctrl_8c_514bb0448df38458bf204ae9f52eacd1}


Function used to change an rx antenna. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]Which RX antenna we wish to chose. If ant\_\-index = 0 the rx antenna outputs are disabled \end{description}
\end{Desc}


Definition at line 294 of file antenna\_\-ctrl.c.

References antenna\_\-ctrl\_\-deactivate\_\-outputs(), antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus(), BUS\_\-CMD\_\-DRIVER\_\-DEACTIVATE\_\-ALL\_\-RX\_\-ANTENNA\_\-OUTPUTS, current\_\-activated\_\-rx\_\-ant\_\-outputs, and current\_\-activated\_\-rx\_\-ant\_\-outputs\_\-length.

Referenced by band\_\-ctrl\_\-change\_\-band(), event\_\-rxant\_\-button\_\-pressed(), event\_\-set\_\-rx\_\-antenna(), and main().\hypertarget{antenna__ctrl_8c_867d4ec14c504e0ecaa9c44c1da6bce6}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-comb\_\-allowed@{antenna\_\-ctrl\_\-comb\_\-allowed}}
\index{antenna\_\-ctrl\_\-comb\_\-allowed@{antenna\_\-ctrl\_\-comb\_\-allowed}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-comb\_\-allowed}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-comb\_\-allowed (unsigned char {\em antenna\_\-comb})}}
\label{antenna__ctrl_8c_867d4ec14c504e0ecaa9c44c1da6bce6}


Retrieve if a certain antenna combination is allowed. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em antenna\_\-comb}]The antenna configuration you wish to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]1 if the combination is allowed, 0 if it is not allowed \end{Desc}


Definition at line 107 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-comb\_\-allowed.

Referenced by event\_\-tx\_\-button1\_\-pressed(), event\_\-tx\_\-button2\_\-pressed(), event\_\-tx\_\-button3\_\-pressed(), and event\_\-tx\_\-button4\_\-pressed().\hypertarget{antenna__ctrl_8c_617a964884601fef0e8559094ade5e3a}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-deactivate\_\-outputs@{antenna\_\-ctrl\_\-deactivate\_\-outputs}}
\index{antenna\_\-ctrl\_\-deactivate\_\-outputs@{antenna\_\-ctrl\_\-deactivate\_\-outputs}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-deactivate\_\-outputs}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-deactivate\_\-outputs (unsigned char $\ast$ {\em addresses}, \/  unsigned char {\em length}, \/  unsigned char {\em cmd})}}
\label{antenna__ctrl_8c_617a964884601fef0e8559094ade5e3a}


This function will go through a parameter with addresses and send a command to it. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em addresses}]The list of addresses to send CMD to \item[{\em length}]The length of the address list \item[{\em cmd}]The command we wish to send to the boards in the address list \end{description}
\end{Desc}


Definition at line 121 of file antenna\_\-ctrl.c.

References bus\_\-add\_\-tx\_\-message(), bus\_\-get\_\-address(), BUS\_\-MESSAGE\_\-FLAGS\_\-NEED\_\-ACK, and internal\_\-comm\_\-add\_\-tx\_\-message().

Referenced by antenna\_\-ctrl\_\-change\_\-rx\_\-ant(), antenna\_\-ctrl\_\-deactivate\_\-all(), antenna\_\-ctrl\_\-deactivate\_\-all\_\-rx\_\-band(), antenna\_\-ctrl\_\-send\_\-ant\_\-data\_\-to\_\-bus(), antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-band\_\-data\_\-to\_\-bus(), antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus(), band\_\-ctrl\_\-deactivate\_\-all(), sub\_\-menu\_\-deactivate\_\-all(), and sub\_\-menu\_\-send\_\-data\_\-to\_\-bus().\hypertarget{antenna__ctrl_8c_f699385bbfef71f6e7b5bc907620f375}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-antenna\_\-text@{antenna\_\-ctrl\_\-get\_\-antenna\_\-text}}
\index{antenna\_\-ctrl\_\-get\_\-antenna\_\-text@{antenna\_\-ctrl\_\-get\_\-antenna\_\-text}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-antenna\_\-text}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ antenna\_\-ctrl\_\-get\_\-antenna\_\-text (unsigned char {\em index})}}
\label{antenna__ctrl_8c_f699385bbfef71f6e7b5bc907620f375}


Get the antenna text \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]The index of the antenna \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]A pointer to the string \end{Desc}


Definition at line 342 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-text.

Referenced by display\_\-antennas(), and display\_\-show\_\-sub\_\-menu().\hypertarget{antenna__ctrl_8c_dd8252987b8ca6f3349ec7a610e4f42c}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length@{antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length}}
\index{antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length@{antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length (unsigned char {\em index})}}
\label{antenna__ctrl_8c_dd8252987b8ca6f3349ec7a610e4f42c}


Get the antenna text length. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]The index of the antenna \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the length of the text \end{Desc}


Definition at line 349 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-text\_\-length.

Referenced by display\_\-antennas(), and display\_\-invert\_\-antenna().\hypertarget{antenna__ctrl_8c_2889af83cf81535e56fb73482d5d6b93}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-comb\_\-allowed@{antenna\_\-ctrl\_\-get\_\-comb\_\-allowed}}
\index{antenna\_\-ctrl\_\-get\_\-comb\_\-allowed@{antenna\_\-ctrl\_\-get\_\-comb\_\-allowed}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-comb\_\-allowed}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int antenna\_\-ctrl\_\-get\_\-comb\_\-allowed (void)}}
\label{antenna__ctrl_8c_2889af83cf81535e56fb73482d5d6b93}


Get the value of combination allowed. 

\begin{Desc}
\item[Returns:]The combination allowed value \end{Desc}


Definition at line 437 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-comb\_\-allowed.\hypertarget{antenna__ctrl_8c_3fa7520f32b87f9239b1a62d93b60224}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-direction@{antenna\_\-ctrl\_\-get\_\-direction}}
\index{antenna\_\-ctrl\_\-get\_\-direction@{antenna\_\-ctrl\_\-get\_\-direction}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-direction}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int antenna\_\-ctrl\_\-get\_\-direction (unsigned char {\em index})}}
\label{antenna__ctrl_8c_3fa7520f32b87f9239b1a62d93b60224}


Get the direction of a specific antenna. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]The index of the antenna \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The direction of the antenna \end{Desc}


Definition at line 388 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-direction.

Referenced by display\_\-rotator\_\-directions(), event\_\-rotate\_\-button\_\-pressed(), event\_\-tx\_\-button1\_\-pressed(), event\_\-tx\_\-button2\_\-pressed(), event\_\-tx\_\-button3\_\-pressed(), and event\_\-tx\_\-button4\_\-pressed().\hypertarget{antenna__ctrl_8c_414f17b17292193e149683ef16f9a2b4}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-flags@{antenna\_\-ctrl\_\-get\_\-flags}}
\index{antenna\_\-ctrl\_\-get\_\-flags@{antenna\_\-ctrl\_\-get\_\-flags}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-flags}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-get\_\-flags (unsigned char {\em index})}}
\label{antenna__ctrl_8c_414f17b17292193e149683ef16f9a2b4}


Get the antenna flags. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]The index of which antenna you wish to get the flag content from \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The flags \end{Desc}


Definition at line 411 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-flag.

Referenced by display\_\-antennas(), display\_\-invert\_\-antenna(), display\_\-rotator\_\-directions(), event\_\-rotate\_\-button\_\-pressed(), event\_\-tx\_\-button1\_\-pressed(), event\_\-tx\_\-button2\_\-pressed(), event\_\-tx\_\-button3\_\-pressed(), event\_\-tx\_\-button4\_\-pressed(), and main\_\-update\_\-ptt\_\-status().\hypertarget{antenna__ctrl_8c_a8912eaa044153c33252d2950adc61e8}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-max\_\-rotation@{antenna\_\-ctrl\_\-get\_\-max\_\-rotation}}
\index{antenna\_\-ctrl\_\-get\_\-max\_\-rotation@{antenna\_\-ctrl\_\-get\_\-max\_\-rotation}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-max\_\-rotation}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int antenna\_\-ctrl\_\-get\_\-max\_\-rotation (unsigned char {\em ant\_\-index})}}
\label{antenna__ctrl_8c_a8912eaa044153c33252d2950adc61e8}


Function returns the maximal number of degrees we can rotate an antenna. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]The antenna index we wish to retrieve the information from \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The number of degrees the antenna can be rotated \end{Desc}


Definition at line 512 of file antenna\_\-ctrl.c.

References struct\_\-antenna::rotator\_\-max\_\-rotation.

Referenced by event\_\-pulse\_\-sensor\_\-down(), and event\_\-pulse\_\-sensor\_\-up().\hypertarget{antenna__ctrl_8c_1d46521ce8c3d872f23f43b850da9b62}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-output\_\-comb@{antenna\_\-ctrl\_\-get\_\-output\_\-comb}}
\index{antenna\_\-ctrl\_\-get\_\-output\_\-comb@{antenna\_\-ctrl\_\-get\_\-output\_\-comb}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-output\_\-comb}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char$\ast$ antenna\_\-ctrl\_\-get\_\-output\_\-comb (unsigned char {\em index})}}
\label{antenna__ctrl_8c_1d46521ce8c3d872f23f43b850da9b62}


Retrieve the output combination string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]Which of the bands you wish to get the output string for \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]pointer to the string beginning \end{Desc}


Definition at line 367 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-comb\_\-output\_\-str.\hypertarget{antenna__ctrl_8c_639af234c8e00a13dd10c7a0542a2121}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-output\_\-comb\_\-length@{antenna\_\-ctrl\_\-get\_\-output\_\-comb\_\-length}}
\index{antenna\_\-ctrl\_\-get\_\-output\_\-comb\_\-length@{antenna\_\-ctrl\_\-get\_\-output\_\-comb\_\-length}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-output\_\-comb\_\-length}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-get\_\-output\_\-comb\_\-length (unsigned char {\em index})}}
\label{antenna__ctrl_8c_639af234c8e00a13dd10c7a0542a2121}


Retrieve the length of the output combination string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]Which of the combinations you wish to retrieve the length of \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The length of the output string \end{Desc}


Definition at line 374 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-output\_\-length.\hypertarget{antenna__ctrl_8c_9dd71f363aeb28a1206f121ce7fc7ef5}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-rotatable@{antenna\_\-ctrl\_\-get\_\-rotatable}}
\index{antenna\_\-ctrl\_\-get\_\-rotatable@{antenna\_\-ctrl\_\-get\_\-rotatable}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-rotatable}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-get\_\-rotatable (void)}}
\label{antenna__ctrl_8c_9dd71f363aeb28a1206f121ce7fc7ef5}


Get which antennas can be rotated. 

\begin{Desc}
\item[Returns:]Which antennas can be rotated, in binary form starting with ant 0 from byte 0 \end{Desc}


Definition at line 306 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-flag, and ANTENNA\_\-ROTATOR\_\-FLAG.

Referenced by ISR().\hypertarget{antenna__ctrl_8c_af93a36f33eb514936184d6b59871045}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-rotator\_\-addr@{antenna\_\-ctrl\_\-get\_\-rotator\_\-addr}}
\index{antenna\_\-ctrl\_\-get\_\-rotator\_\-addr@{antenna\_\-ctrl\_\-get\_\-rotator\_\-addr}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-rotator\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-get\_\-rotator\_\-addr (unsigned char {\em ant\_\-index})}}
\label{antenna__ctrl_8c_af93a36f33eb514936184d6b59871045}


Get the address of the rotator at a certain antenna index. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]The index of the antenna \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The address of the rotator \end{Desc}


Definition at line 395 of file antenna\_\-ctrl.c.

References struct\_\-antenna::rotator\_\-addr.\hypertarget{antenna__ctrl_8c_adbedcec23510f8371b478ecb6a44cff}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-rotator\_\-flags@{antenna\_\-ctrl\_\-get\_\-rotator\_\-flags}}
\index{antenna\_\-ctrl\_\-get\_\-rotator\_\-flags@{antenna\_\-ctrl\_\-get\_\-rotator\_\-flags}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-rotator\_\-flags}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-get\_\-rotator\_\-flags (unsigned char {\em ant\_\-index})}}
\label{antenna__ctrl_8c_adbedcec23510f8371b478ecb6a44cff}


Get the flags of the rotator, see \hyperlink{antenna__ctrl_8h}{antenna\_\-ctrl.h} for defines. 

\begin{Desc}
\item[Returns:]The rotator flags of the antenna \end{Desc}


Definition at line 430 of file antenna\_\-ctrl.c.

References struct\_\-antenna::rotator\_\-flags.

Referenced by ISR().\hypertarget{antenna__ctrl_8c_d80ffba3c3b267e545c89fdf8eb630a0}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-count@{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-count}}
\index{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-count@{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-count}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-count}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-count (void)}}
\label{antenna__ctrl_8c_d80ffba3c3b267e545c89fdf8eb630a0}


Retrieve the number of rx antennas. 

\begin{Desc}
\item[Returns:]The number of rx antenna count \end{Desc}


Definition at line 455 of file antenna\_\-ctrl.c.

References struct\_\-rx\_\-antennas::name.

Referenced by display\_\-show\_\-rx\_\-ant(), event\_\-pulse\_\-sensor\_\-down(), event\_\-pulse\_\-sensor\_\-up(), and event\_\-rxant\_\-button\_\-pressed().\hypertarget{antenna__ctrl_8c_70b169070eef11ade4befde87d77066e}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-name@{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-name}}
\index{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-name@{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-name}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-name}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-name (unsigned char {\em ant\_\-index})}}
\label{antenna__ctrl_8c_70b169070eef11ade4befde87d77066e}


Retrieve the rx antenna name. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]The index of the antenna \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The name of the RX antenna \end{Desc}


Definition at line 468 of file antenna\_\-ctrl.c.

References struct\_\-rx\_\-antennas::name.

Referenced by display\_\-show\_\-rx\_\-ant().\hypertarget{antenna__ctrl_8c_a056976754fe5135ea38a96e5aa1a1da}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-output\_\-str@{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-output\_\-str}}
\index{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-output\_\-str@{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-output\_\-str}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-output\_\-str}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-output\_\-str (unsigned char {\em ant\_\-index})}}
\label{antenna__ctrl_8c_a056976754fe5135ea38a96e5aa1a1da}


Retrieve the rx antenna output str. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]The index of the antenna \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The output str of the rx antenna sent in \end{Desc}


Definition at line 475 of file antenna\_\-ctrl.c.

References struct\_\-rx\_\-antennas::output\_\-str.\hypertarget{antenna__ctrl_8c_39d3e60a2b5fbaa84e3d6e7f8af053f2}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-start\_\-heading@{antenna\_\-ctrl\_\-get\_\-start\_\-heading}}
\index{antenna\_\-ctrl\_\-get\_\-start\_\-heading@{antenna\_\-ctrl\_\-get\_\-start\_\-heading}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-start\_\-heading}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int antenna\_\-ctrl\_\-get\_\-start\_\-heading (unsigned char {\em ant\_\-index})}}
\label{antenna__ctrl_8c_39d3e60a2b5fbaa84e3d6e7f8af053f2}


Function returns the start heading for a certain antenna. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]The index of the antenna we wish to retrieve the heading from \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The start heading of this antenna \end{Desc}


Definition at line 505 of file antenna\_\-ctrl.c.

References struct\_\-antenna::rotator\_\-min\_\-heading.

Referenced by event\_\-pulse\_\-sensor\_\-down(), and event\_\-pulse\_\-sensor\_\-up().\hypertarget{antenna__ctrl_8c_a00ccf2aa2b062bb0d95817067c656ff}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-get\_\-sub\_\-menu\_\-type@{antenna\_\-ctrl\_\-get\_\-sub\_\-menu\_\-type}}
\index{antenna\_\-ctrl\_\-get\_\-sub\_\-menu\_\-type@{antenna\_\-ctrl\_\-get\_\-sub\_\-menu\_\-type}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-get\_\-sub\_\-menu\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char antenna\_\-ctrl\_\-get\_\-sub\_\-menu\_\-type (unsigned char {\em ant\_\-index})}}
\label{antenna__ctrl_8c_a00ccf2aa2b062bb0d95817067c656ff}


Get which kind of sub meny type an antenna has got. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]Which antenna index we wish to show the sub menu type for \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The sub meny type \end{Desc}


Definition at line 519 of file antenna\_\-ctrl.c.

References struct\_\-antenna::sub\_\-menu\_\-type.

Referenced by display\_\-rotator\_\-directions(), event\_\-sub\_\-button\_\-pressed(), sub\_\-menu\_\-activate\_\-all(), sub\_\-menu\_\-get\_\-count(), sub\_\-menu\_\-get\_\-text(), sub\_\-menu\_\-get\_\-type(), and sub\_\-menu\_\-load().\hypertarget{antenna__ctrl_8c_d10d2760a5ef3cd190cb010a1d92d3bc}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-band\_\-data\_\-to\_\-bus@{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-band\_\-data\_\-to\_\-bus}}
\index{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-band\_\-data\_\-to\_\-bus@{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-band\_\-data\_\-to\_\-bus}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-band\_\-data\_\-to\_\-bus}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-band\_\-data\_\-to\_\-bus (char {\em index})}}
\label{antenna__ctrl_8c_d10d2760a5ef3cd190cb010a1d92d3bc}


Send the output string for the rx antenna to the bus. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]The index of the antenna you wish to send the string of \end{description}
\end{Desc}


Definition at line 231 of file antenna\_\-ctrl.c.

References antenna\_\-ctrl\_\-deactivate\_\-outputs(), struct\_\-rx\_\-antennas::band\_\-output\_\-length, struct\_\-rx\_\-antennas::band\_\-output\_\-str, bus\_\-add\_\-tx\_\-message(), BUS\_\-CMD\_\-DRIVER\_\-ACTIVATE\_\-RX\_\-BAND\_\-OUTPUT, BUS\_\-CMD\_\-DRIVER\_\-DEACTIVATE\_\-ALL\_\-RX\_\-BAND\_\-OUTPUTS, bus\_\-get\_\-address(), BUS\_\-MESSAGE\_\-FLAGS\_\-NEED\_\-ACK, current\_\-band\_\-activated\_\-outputs\_\-rx, current\_\-band\_\-activated\_\-outputs\_\-rx\_\-length, internal\_\-comm\_\-add\_\-tx\_\-message(), and OUTPUT\_\-ADDR\_\-DELIMITER.

Referenced by band\_\-ctrl\_\-change\_\-band().\hypertarget{antenna__ctrl_8c_e051f6dcbf9dbf11f3af8651c9c6e466}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus@{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus}}
\index{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus@{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-send\_\-rx\_\-ant\_\-data\_\-to\_\-bus (unsigned char {\em antenna\_\-index})}}
\label{antenna__ctrl_8c_e051f6dcbf9dbf11f3af8651c9c6e466}


Send the output string for the rx antenna to the bus. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em antenna\_\-index}]The index of the antenna you wish to send the string of \end{description}
\end{Desc}


Definition at line 189 of file antenna\_\-ctrl.c.

References antenna\_\-ctrl\_\-deactivate\_\-outputs(), bus\_\-add\_\-tx\_\-message(), BUS\_\-CMD\_\-DRIVER\_\-ACTIVATE\_\-RX\_\-ANT\_\-OUTPUT, BUS\_\-CMD\_\-DRIVER\_\-DEACTIVATE\_\-ALL\_\-RX\_\-ANTENNA\_\-OUTPUTS, bus\_\-get\_\-address(), BUS\_\-MESSAGE\_\-FLAGS\_\-NEED\_\-ACK, current\_\-activated\_\-rx\_\-ant\_\-outputs, current\_\-activated\_\-rx\_\-ant\_\-outputs\_\-length, internal\_\-comm\_\-add\_\-tx\_\-message(), OUTPUT\_\-ADDR\_\-DELIMITER, struct\_\-rx\_\-antennas::output\_\-length, and struct\_\-rx\_\-antennas::output\_\-str.

Referenced by antenna\_\-ctrl\_\-change\_\-rx\_\-ant().\hypertarget{antenna__ctrl_8c_47b039bc9a835c8cbabd7f50057b2957}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-set\_\-antenna\_\-data@{antenna\_\-ctrl\_\-set\_\-antenna\_\-data}}
\index{antenna\_\-ctrl\_\-set\_\-antenna\_\-data@{antenna\_\-ctrl\_\-set\_\-antenna\_\-data}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-set\_\-antenna\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-set\_\-antenna\_\-data ({\bf struct\_\-antenna} $\ast$ {\em data})}}
\label{antenna__ctrl_8c_47b039bc9a835c8cbabd7f50057b2957}


Set the antenna data. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data we wish to use as antenna data \end{description}
\end{Desc}


Definition at line 443 of file antenna\_\-ctrl.c.\hypertarget{antenna__ctrl_8c_67ef7b9651847f28b45acf63409d3e4f}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-set\_\-antenna\_\-text@{antenna\_\-ctrl\_\-set\_\-antenna\_\-text}}
\index{antenna\_\-ctrl\_\-set\_\-antenna\_\-text@{antenna\_\-ctrl\_\-set\_\-antenna\_\-text}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-set\_\-antenna\_\-text}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-set\_\-antenna\_\-text (char $\ast$ {\em str}, \/  unsigned char {\em index})}}
\label{antenna__ctrl_8c_67ef7b9651847f28b45acf63409d3e4f}


Set the antenna text. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em str}]Which data should be saved \item[{\em index}]The index of the antenna \end{description}
\end{Desc}


Definition at line 335 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-text.\hypertarget{antenna__ctrl_8c_ca265706bc869a70b15125d0009985f8}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-set\_\-comb\_\-allowed@{antenna\_\-ctrl\_\-set\_\-comb\_\-allowed}}
\index{antenna\_\-ctrl\_\-set\_\-comb\_\-allowed@{antenna\_\-ctrl\_\-set\_\-comb\_\-allowed}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-set\_\-comb\_\-allowed}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-set\_\-comb\_\-allowed (unsigned int {\em comb})}}
\label{antenna__ctrl_8c_ca265706bc869a70b15125d0009985f8}


Set the value of combination allowed. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em comb}]The combination that is allowed \end{description}
\end{Desc}


Definition at line 417 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-comb\_\-allowed.\hypertarget{antenna__ctrl_8c_57c363e5b03bbe970b825521621b5d93}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-set\_\-direction@{antenna\_\-ctrl\_\-set\_\-direction}}
\index{antenna\_\-ctrl\_\-set\_\-direction@{antenna\_\-ctrl\_\-set\_\-direction}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-set\_\-direction}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-set\_\-direction (unsigned int {\em dir}, \/  unsigned char {\em index})}}
\label{antenna__ctrl_8c_57c363e5b03bbe970b825521621b5d93}


Set the direction of a specific antenna. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em dir}]The direction of the antenna \item[{\em index}]The index of the antenna \end{description}
\end{Desc}


Definition at line 381 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-direction.\hypertarget{antenna__ctrl_8c_1b846760b85ec561bcfa58ae8ef754f8}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-set\_\-flags@{antenna\_\-ctrl\_\-set\_\-flags}}
\index{antenna\_\-ctrl\_\-set\_\-flags@{antenna\_\-ctrl\_\-set\_\-flags}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-set\_\-flags}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-set\_\-flags (unsigned char {\em flags}, \/  unsigned char {\em index})}}
\label{antenna__ctrl_8c_1b846760b85ec561bcfa58ae8ef754f8}


Set the antenna flags. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em flags}]The flags you wish to be enabled for this antenna \item[{\em index}]The index of the antenna which the flags should be set to \end{description}
\end{Desc}


Definition at line 403 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-flag.\hypertarget{antenna__ctrl_8c_3770c53b8f0d9f218f7be391526258f8}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-set\_\-output\_\-comb@{antenna\_\-ctrl\_\-set\_\-output\_\-comb}}
\index{antenna\_\-ctrl\_\-set\_\-output\_\-comb@{antenna\_\-ctrl\_\-set\_\-output\_\-comb}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-set\_\-output\_\-comb}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-set\_\-output\_\-comb (unsigned char $\ast$ {\em data}, \/  unsigned char {\em index}, \/  unsigned char {\em length})}}
\label{antenna__ctrl_8c_3770c53b8f0d9f218f7be391526258f8}


Set the output combination string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The string you wish to save \item[{\em index}]The index of the output combination \item[{\em length}]The length of the output string \end{description}
\end{Desc}


Definition at line 358 of file antenna\_\-ctrl.c.

References struct\_\-antenna::antenna\_\-comb\_\-output\_\-str, and struct\_\-antenna::antenna\_\-output\_\-length.\hypertarget{antenna__ctrl_8c_649f35330fef3657d6c940d4cce729c2}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-set\_\-rotator\_\-flags@{antenna\_\-ctrl\_\-set\_\-rotator\_\-flags}}
\index{antenna\_\-ctrl\_\-set\_\-rotator\_\-flags@{antenna\_\-ctrl\_\-set\_\-rotator\_\-flags}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-set\_\-rotator\_\-flags}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-set\_\-rotator\_\-flags (unsigned char {\em ant\_\-index}, \/  unsigned char {\em flags})}}
\label{antenna__ctrl_8c_649f35330fef3657d6c940d4cce729c2}


Set the flags of the rotator, see \hyperlink{antenna__ctrl_8h}{antenna\_\-ctrl.h} for defines. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]The antenna index \item[{\em flags}]Flags from the rotator \end{description}
\end{Desc}


Definition at line 424 of file antenna\_\-ctrl.c.

References struct\_\-antenna::rotator\_\-flags.\hypertarget{antenna__ctrl_8c_39daba7cda25836874b10aa8e8cf48f3}{
\index{antenna\_\-ctrl.c@{antenna\_\-ctrl.c}!antenna\_\-ctrl\_\-set\_\-rx\_\-antenna\_\-data@{antenna\_\-ctrl\_\-set\_\-rx\_\-antenna\_\-data}}
\index{antenna\_\-ctrl\_\-set\_\-rx\_\-antenna\_\-data@{antenna\_\-ctrl\_\-set\_\-rx\_\-antenna\_\-data}!antenna_ctrl.c@{antenna\_\-ctrl.c}}
\subsubsection[{antenna\_\-ctrl\_\-set\_\-rx\_\-antenna\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void antenna\_\-ctrl\_\-set\_\-rx\_\-antenna\_\-data ({\bf struct\_\-rx\_\-antennas} $\ast$ {\em data})}}
\label{antenna__ctrl_8c_39daba7cda25836874b10aa8e8cf48f3}


Set the antenna rx data. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em data}]The data we wish to use as rx antenna data \end{description}
\end{Desc}


Definition at line 449 of file antenna\_\-ctrl.c.